package com.ckerchina.admin.ckadmin.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;

import com.ckerchina.admin.ckadmin.domain.IdEntity.IdEntityAuto;

@Entity
public class MaterialOrder extends IdEntityAuto {
	private static final long serialVersionUID = 9206033027073483217L;

	private Long material_id;

	/** 物料名称 */
	@Column(length = 20)
	private String material_name;

	private String agent_id;

	private String agent_name;

	private String buy_memo;

	private String deal_memo;

	private int stock;

	private String pic_path;

	private int price;

	private int sold;

	private String memo;

	@Column(columnDefinition = "int(2)")
	private int state;

	public Long getMaterial_id() {
		return material_id;
	}

	public void setMaterial_id(Long material_id) {
		this.material_id = material_id;
	}

	public String getDeal_memo() {
		return deal_memo;
	}

	public void setDeal_memo(String deal_memo) {
		this.deal_memo = deal_memo;
	}

	public String getBuy_memo() {
		return buy_memo;
	}

	public void setBuy_memo(String buy_memo) {
		this.buy_memo = buy_memo;
	}

	public int getBuy_num() {
		return buy_num;
	}

	public void setBuy_num(int buy_num) {
		this.buy_num = buy_num;
	}

	private int buy_num;

	public String getMaterial_name() {
		return material_name;
	}

	public String getAgent_id() {
		return agent_id;
	}

	public void setAgent_id(String agent_id) {
		this.agent_id = agent_id;
	}

	public String getAgent_name() {
		return agent_name;
	}

	public void setAgent_name(String agent_name) {
		this.agent_name = agent_name;
	}

	public void setMaterial_name(String material_name) {
		this.material_name = material_name;
	}

	public int getStock() {
		return stock;
	}

	public void setStock(int stock) {
		this.stock = stock;
	}

	public String getPic_path() {
		return pic_path;
	}

	public void setPic_path(String pic_path) {
		this.pic_path = pic_path;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public int getSold() {
		return sold;
	}

	public void setSold(int sold) {
		this.sold = sold;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
}
